package com.epam.cdp.jpa.services;

import javax.ejb.Stateless;

import com.epam.cdp.jpa.exceptions.InvalidArgumentException;

@Stateless
public class ValidationService {
    
    public void notNull(Object ... parameters) {
	for (Object parameter: parameters) {
	    if (parameter == null) {
		throw new InvalidArgumentException();
	    }
	}
    }
    
}
